package com.ftg.learn.smhtml.qianduan.service;

import com.ftg.learn.smhtml.qianduan.mapper.ChanpinMapper;
import com.ftg.learn.smhtml.qianduan.pojo.Chanpin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChanpinService {

    @Autowired
    ChanpinMapper cm;

    public List<Chanpin> showAll(){

        return cm.showAll();
    }
}
